export const modiletypefunction = (mobiletype, params) => {
  if (mobiletype == "isIOS") {
    window.webkit.messageHandlers.xs_localHandleAction.postMessage(
      JSON.stringify(params)
    );
  } else {
    window.xs_localHandleAction.postMessage(JSON.stringify(params));
  }
};
